package edu.hawaii.ics414.blackjack.card;

/**
 * The suit of a card.
 * 
 * @author Branden Ogata
 *
 */

public enum Suit
{
  HEARTS, DIAMONDS, CLUBS, SPADES;
  
  /**
   * Returns a String representation of this Suit.
   * 
   * @return The first letter of the value of this Suit.
   * 
   */
  
  @Override
  public String toString()
  {
    switch (this)
    {
      case HEARTS:
        return "H";
      case DIAMONDS:
        return "D";
      case CLUBS:
        return "C";
      case SPADES:
        return "S";
      default:
        throw new IllegalStateException("Invalid suit");
    }
  }
}
